$('.btn').click(function (e) {
    let index = $(this).data('index');
    $.post('/excel',null,res =>{
        window.open(res);
    })
    
})